<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #my-video,
        #my-canvas {
            width: 300px;
            height: 200px;
            border: 1px solid black;
        }

        #my-canvas {
            background-color: rgb(255, 0, 0);
            position: fixed;
        }

        #my-video {
            background-color: rgb(0, 184, 245);
            position: fixed;
        }

        #my-button {
            position: fixed;
            top: 220px;
            left: 0px;
        }
    </style>
</head>

<body>
    <video id="my-video" src="./demo.mp4" controls></video>
    <canvas id="my-canvas"></canvas>
    <button id="my-button" onclick="handleButtonClick()">Click me</button>

    <script>
        function handleButtonClick() {
            const canvas = document.getElementById('my-canvas');
            canvas.style.display = canvas.style.display === 'block' ? 'none' : 'block';
        }
    </script>
</body>

</html>